package com.chuckfact.person;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;

public class Angelo {
	private String firstName;
	private String lastName;
	private Collection<String> jokes;

	private Iterator _jokeIt;
	
	public Angelo(){
		lastName="";
		firstName="";
		
		//init jokes
		jokes = new ArrayList<String>();
		jokes.add("HIHI DTC LOL");
		jokes.add("OUE mais tu devrais essayer WoW srsly!");
		jokes.add("VA CHIER");
		jokes.add("Oh maiss non non non non");
		
		this._jokeIt = jokes.iterator();
	}
	
	public Angelo(String firstName, String lastName){
		this.firstName=firstName;
		this.lastName=lastName;
		
		//init jokes
		jokes = new ArrayList<String>();
		jokes.add("HIHI DTC LOL");
		jokes.add("OUE mais tu devrais essayer WoW srsly!");
		jokes.add("VA CHIER");
		jokes.add("Oh maiss non non non non");

		this._jokeIt = jokes.iterator();
	}
	
	public void tellJoke(){
		if (!_jokeIt.hasNext())	_jokeIt = jokes.iterator();
		System.out.println(firstName + " " + lastName + ": " + _jokeIt.next());
	}
}
